﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace ProjectSem40701.Admin
{
    public partial class ReportRoundResult : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            FillData();
        }

        protected void FillData()
        {
            int roundID = Convert.ToInt32(Session["rid"]);
            AdminXSD.UserRoundTableAdapters.UserRoundSelectTableAdapter adp = new ProjectSem40701.Admin.AdminXSD.UserRoundTableAdapters.UserRoundSelectTableAdapter();
            DataTable dt = adp.UserRoundSelectByID(roundID);

            rptUserRound rpt = new rptUserRound();
            rpt.SetDataSource(dt);

            CrystalReportViewer1.ReportSource = rpt;

        }
    }
}
